powered by
method(object)<-value
object
method<--methods
x=new("cpt") # new cpt object method(x)<-"mean" # replaces the existing method slot in x with "mean"
Run the code above in your browser using DataLab